<template>

  <div class="orderArea">

    <div class="orderTile">
      <div class="orderTileLeft">我的订单</div>
      <div class="orderTitleRight">查看全部&nbsp;<van-icon name="arrow"  /></div>
    </div>

      <div class="content">
        <div class="item" v-for="(item,index) in itemList" :key="index">
            <div class="itemIcon"><van-icon :name="item.iconName" :badge="item.badge" /></div>
            <div class="itemTitle">{{item.itemTitle}}</div>
        </div>
    </div>

  </div>

  
    
</template>


<style>

.orderArea{
  background-color: #fff;
  width: 100%;
  margin-top: 20px;
  font-size: 35px;
  padding: 20px;
}

.orderTile{
  display: flex;
  justify-content: space-between;
}

.orderTitleRight{
  color: #888;
  font-size: 30px;
}

/* 图标文字部分 */
.content{
  padding: 30px;
  display: flex;
  justify-content: space-between;
  background-color: #fff;
}

.item{
  width: 100%;
  display: flex;
  flex-direction: column;
}

.itemIcon{
  color: #888;
  font-size: 60px;
}

.item .itemTitle{
  padding: 10px;
  font-size: 25px;
}
</style>

<script>
export default {
    data() {
        return {
            itemList: [
                {iconName:"paid",itemTitle:"待支付",badge: 1,badge:1},
                {iconName:"underway-o",itemTitle:"待发货",badge: 1,badge:2},
                {iconName:"logistics",itemTitle:"待收货",badge: 4,badge:4},
                {iconName:"records-o",itemTitle:"待评价",badge: 12,badge:13},
            ],
        }
    }
}
</script>